﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006A9 RID: 1705
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetCurSceneInfoScRsp : IMessage<GetCurSceneInfoScRsp>, IMessage, IEquatable<GetCurSceneInfoScRsp>, IDeepCloneable<GetCurSceneInfoScRsp>, IBufferMessage
	{
		// Token: 0x170015F4 RID: 5620
		// (get) Token: 0x06004CDD RID: 19677 RVA: 0x000D2379 File Offset: 0x000D0579
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetCurSceneInfoScRsp> Parser
		{
			get
			{
				return GetCurSceneInfoScRsp._parser;
			}
		}

		// Token: 0x170015F5 RID: 5621
		// (get) Token: 0x06004CDE RID: 19678 RVA: 0x000D2380 File Offset: 0x000D0580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetCurSceneInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170015F6 RID: 5622
		// (get) Token: 0x06004CDF RID: 19679 RVA: 0x000D2392 File Offset: 0x000D0592
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetCurSceneInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004CE0 RID: 19680 RVA: 0x000D2399 File Offset: 0x000D0599
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurSceneInfoScRsp()
		{
		}

		// Token: 0x06004CE1 RID: 19681 RVA: 0x000D23A4 File Offset: 0x000D05A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurSceneInfoScRsp(GetCurSceneInfoScRsp other) : this()
		{
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004CE2 RID: 19682 RVA: 0x000D23F0 File Offset: 0x000D05F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurSceneInfoScRsp Clone()
		{
			return new GetCurSceneInfoScRsp(this);
		}

		// Token: 0x170015F7 RID: 5623
		// (get) Token: 0x06004CE3 RID: 19683 RVA: 0x000D23F8 File Offset: 0x000D05F8
		// (set) Token: 0x06004CE4 RID: 19684 RVA: 0x000D2400 File Offset: 0x000D0600
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x170015F8 RID: 5624
		// (get) Token: 0x06004CE5 RID: 19685 RVA: 0x000D2409 File Offset: 0x000D0609
		// (set) Token: 0x06004CE6 RID: 19686 RVA: 0x000D2411 File Offset: 0x000D0611
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004CE7 RID: 19687 RVA: 0x000D241A File Offset: 0x000D061A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetCurSceneInfoScRsp);
		}

		// Token: 0x06004CE8 RID: 19688 RVA: 0x000D2428 File Offset: 0x000D0628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetCurSceneInfoScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Scene, other.Scene) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004CE9 RID: 19689 RVA: 0x000D2478 File Offset: 0x000D0678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004CEA RID: 19690 RVA: 0x000D24CD File Offset: 0x000D06CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004CEB RID: 19691 RVA: 0x000D24D5 File Offset: 0x000D06D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004CEC RID: 19692 RVA: 0x000D24E0 File Offset: 0x000D06E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.scene_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004CED RID: 19693 RVA: 0x000D253C File Offset: 0x000D073C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004CEE RID: 19694 RVA: 0x000D2594 File Offset: 0x000D0794
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetCurSceneInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004CEF RID: 19695 RVA: 0x000D25FC File Offset: 0x000D07FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004CF0 RID: 19696 RVA: 0x000D2608 File Offset: 0x000D0808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.scene_ == null)
					{
						this.Scene = new SceneInfo();
					}
					input.ReadMessage(this.Scene);
				}
			}
		}

		// Token: 0x04001E53 RID: 7763
		private static readonly MessageParser<GetCurSceneInfoScRsp> _parser = new MessageParser<GetCurSceneInfoScRsp>(() => new GetCurSceneInfoScRsp());

		// Token: 0x04001E54 RID: 7764
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001E55 RID: 7765
		public const int SceneFieldNumber = 3;

		// Token: 0x04001E56 RID: 7766
		private SceneInfo scene_;

		// Token: 0x04001E57 RID: 7767
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04001E58 RID: 7768
		private uint retcode_;
	}
}
